<?php
/*
<div class="n_ad">
<script type="text/javascript" src="http://www.che1an.com/ad/baikeShow"></script>
</div>




public function mac_baikeShow(){
	// 获取广告缓存
	$pCacheAd = base::load_cache('ad');
	$aAd = $pCacheAd->baike_get();

	// show页面的广告
	$aData = $aAd[0][0];

	$sAd = '<a target=\"_blank\" href=\"'.$aData['url'].'\">';
	$sAd .= '<img src=\"'.$aData['photo'].'\" onerror=\"this.src=\'http://www.che1an.com/images/nophoto.gif\'\" title=\"'.$aData['name'].'\">';
	$sAd .= '</a>';
	$js = 'document.write("'.$sAd.'");';
	exit($js);
}